import http from '../utils/http.js'

// 获取商品品类列表
export function goodsCategoryList(params) {
  return http.get('/pin/goods/category/list', params);
}

// 获取搜索联想词
export function getSearchSuggestion(params){
  return http.post('/pin/panel/affix', params);
}

// 获取商品推荐列表
export function goodsRecommendList(params){
  return http.get('/pin/panel/recommend', params);
}

// 关键词搜索
export function keywordSearch(params){
  return http.post('/pin/goods/keyword', params);
}

// 商品类别搜索
export function CategorySearch(params){
  return http.post('/pin/goods/category', params);
}

// 获取用户搜索记录面板
export function getSearchRecord(params){
  return http.post('/using/rel/ser/record', params);
}

// 获取用户浏览记录面板
export function getBrowseRecord(params){
  return http.post('/using/rel/browse/record', params);
}

// 删除用户搜索记录
export function delSearchRecord(params){
  return http.post('/using/rel/del/ser/record', params);
}

// 删除用户浏览记录
export function delBrowseRecord(params){
  return http.post('/using/rel/del/browse/record', params);
}

// 获取用户信息
export function getUserInfo(params){
  return http.get('/using/kp/user', params);
}

// 修改用户信息
export function changeUserInfo(params){
  return http.post('/using/kp/user', params);
}
